<?php

namespace IDock\Insurance\TAIC\Request;

use IDock\Insurance\TAIC\Response\ProposalStatusResponse;
use IDock\Visitor\ProposalRecallVisitor;

class ProposalStatusRequest extends AllTAICRequest
{
    protected $route = 'access/car/proposalQuery.mvc';

    protected $response = ProposalStatusResponse::class;

    protected $urlTip = '投保单查询';

    /**
     * @var  ProposalRecallVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        $this->tradeNo = $this->visitor->argc['tradeNo'] ?? '';

        return [
            'proList' => array_values(array_filter([$this->visitor->ciInquiryNo,$this->visitor->biInquiryNo])),
        ];
    }
}
